﻿namespace NH3.Mapping
{
	using FluentNHibernate.Mapping;
	using NH3.Model;

	public sealed class SkillMapping : ClassMap<Skill>
	{
		public SkillMapping()
		{
			Table("Competenza");

			Id(s => s.Id);

			Map(s => s.Description)
				.Column("Descrizione");

			Map(s => s.Rank)
				.Not
				.Nullable();
		}
	}
}
